//
//  OnOfDataSpecialistDisabuse.m
//  __PRODUCTNAME__
//
//  Created by li cheng on 16/09/05
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "OnOfDataSpecialistDisabuse.h"
#import "TagsOfOnDataSpecialistDisabuse.h"
#import "TeacherOfOnDataSpecialistDisabuse.h"
@implementation OnOfDataSpecialistDisabuse

+ (NSDictionary *)objectClassInArray{
    return @{@"tags" : [TagsOfOnDataSpecialistDisabuse class]};
}

- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"teacher"]) {
        _teacher = [TeacherOfOnDataSpecialistDisabuse modelDic:value];
    }
    if ([key isEqualToString:@"tags"]) {
        NSMutableArray<TagsOfOnDataSpecialistDisabuse *> *mArrayOfTagsOfOnDataSpecialistDisabuse = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            TagsOfOnDataSpecialistDisabuse *tagsOfOnDataSpecialistDisabuse = [TagsOfOnDataSpecialistDisabuse modelDic:dic];
            [mArrayOfTagsOfOnDataSpecialistDisabuse addObject:tagsOfOnDataSpecialistDisabuse];
        }
        _tags = mArrayOfTagsOfOnDataSpecialistDisabuse;
    }
}
- (void)setValue:(id)value forUndefinedKey:(nonnull NSString *)key{
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}
@end
